<?php 
/**

 * @name Session 
 * @author 

 * @des 根据APP_ID自动生成会话前缀
 * @version 1.0.0

 * @Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
 * @updated 2016-10-12
 

 */
//定义导航命名空间
namespace session;

class Session{

{   
  //Function to get a session variable
  public static function session_get($key)
  {
    $k = APP_ID . '.' . $key;

    if(isset($_SESSION[$k]))
    {
        return $_SESSION[$k];
    }
    return false;
  }
  //Function set the session variable
  public static session_set($key , $value)
  {
    $k = APP_ID . '.' . $key;
    $_SESSION[$k] = $value;

    return true;
  }
}

?>